package cn.itrip.auth.service;

import cn.itrip.beans.pojo.ItripUser;

public interface TokenService {
    //生产token
    public String generateToken(String userAgent, ItripUser user) throws Exception;

    //保存token
    public void save(String token, ItripUser user) throws Exception;

    //验证Token
    public boolean validateToken(String userAgent, String token) throws Exception;

    //注销
    public void remove(String token) throws Exception;
    public String  reloadToken(String userAgent, String token) throws Exception;
}
